﻿<%@ Page Language="C#" ValidateRequest="false"  AutoEventWireup="true" CodeFile="NoteUpdate.aspx.cs" Inherits="Manage_NoteUpdate" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../styles/css.css" rel="stylesheet" type="text/css">
        <script language="vbscript" src="../Common/yz.vbs"></script>
            <script language="vbscript">

	Function SaveFile(byval ContentHtml,byval ContentText,byval wordCount)
	    If len( document.all("txtName").value) =0 Then
            msgbox "标题不能为空！",16
            document.all("txtName").focus()
          
	    elseIf len( ContentText) =0 Then
            msgbox "内容不能为空！",16
            
	    elseIf len( document.all("txtAddDate").value) =0 Then
            msgbox "发布时间！",16
            document.all("txtConferdate").focus()
	    elseIf IsDate( document.all("txtAddDate").value) =false Then
            msgbox "发布时间！",16
            document.all("txtConferdate").focus()
          
        Else
			lngMsg = msgbox("确实要添加吗？",36,"法律法规")
			
			If lngMsg = 6 Then
				Form1.txtContentHtml.value = ContentHtml
				Form1.txtContentText.value = ContentText
				Form1.submit()
			End If
        End If	    
	End Function
	Sub window_onload()
        SetTimeout "Load",2000
    End Sub

    Sub Load()
          ifrPageEdit.ifrEdit.document.body.innerHTML = document.all("txtContentHtml").value
    End Sub 
    </script>
</head>
<body>
    <form id="Form1" runat="server">
              <script language="javascript" src="../common/javascript/calendar.js" type="text/javascript"></script>

    <div>
            <br>
           <table  id="tabData" width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table_table2">
                <tr>
                    <td class="table_td3">
                        标 &nbsp;&nbsp; 题：</td>
                    <td class="table_td2"><input type='text' name='txtName' size='40'  NotNull='标题' InvertedComma='标题' value ='<%=strName1 %>'>
                        <span style="color: #ff0000">(*)</span></td>
                </tr>
                <tr>
                    <td class="table_td3">
                        内 &nbsp;&nbsp; 容：</td>
                    <td class="table_td2">
                        <iframe  name="ifrPageEdit" width="100%" height="400" src="../PageEdit/PageEdit.htm" ></iframe>
                    <span style="color: #ff0000">(*)</span>
                        <input type='hidden' name='txtContentText'>
                        <textarea name='txtContentHtml' style='display:none'><%=strContent1 %></textarea></td>
                </tr>
                <tr>
                    <td class="table_td3">
                        发布时间：</td>
                    <td class="table_td2">
                        <asp:TextBox runat="server" ID="txtAddDate" onclick="javascript:fPopCalendar(txtAddDate,txtAddDate);"
                        dataType="Date" format="ymd" require="true" msg="日期不存在" NotNull="发布时间"  DateTimeOnly="发布时间"></asp:TextBox>
                        <asp:TextBox ID="txtInfoId" runat="server" Width="58px"></asp:TextBox>
                        <asp:TextBox ID="txtAccountId" runat="server" Width="68px"></asp:TextBox>&nbsp;
                        <span style="color: #ff0000">(*)</span></td>
                       
                </tr>
               <tr>
                   <td class="table_td3">
                       文件上载</td>
                   <td class="table_td2"><a href="noteUpLoad.aspx?Notid=<%=Notid%>" target="_blank">点击文件上传</a>
                   </td>
               </tr>
                <tr>
                    <td class="table_td3">
                        <input  type=button    name="btnSubmit" id="btnSubmit" value="保  存" class="button_bg"
            onclick="javascript:ifrPageEdit.SaveFile()"></td>
                    <td class="table_td2">
                        <input id="Button2"   class="button_bg"  type="button" value="关  闭" onclick="window.close()" /></td>
                </tr>
            </table>  </div>
    </form>
</body>
</html>
